/**
 * 基础路由
 * @type { *[] }
 */
import BasicLayout from "../layout/BasicLayout.vue";
import ImagesView from "../view/ImagesView.vue";
import Index from "../layout/Index.vue";
import AdminView from "../view/AdminView.vue";
import LoginView from "../view/LoginView.vue";


const constantRouterMap = [
    {
        path: '/',
        name: 'home',
        redirect: '/index',
        component: BasicLayout,
        children: [
            {
                path: '/images',
                name: 'images',
                component: ImagesView
            }
        ]
    },
    {
        path: '/index',
        name: 'index',
        component: Index
    },
    {
        path: '/login',
        name: 'login',
        component: LoginView
    },
    {
        path: '/admin',
        name: 'admin',
        component: AdminView
    }

]

export default constantRouterMap
